package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.pojo.MarketOrder;
import com.cskaoyan.bean.pojo.MarketOrderGoods;
import com.cskaoyan.bean.pojo.MarketUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author rebaogu
 * @description
 * @date 2022.04.07 21:50
 * @package com.cskaoyan.bean.vo
 * @Classname OrderDetailVO
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class OrderDetailVO {

    private List<MarketOrderGoods> orderGoods;
    // private UserDTO user;
    // private OrderDTO order;
    private MarketUser user;
    private MarketOrder order;

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class UserDTO {
        private String nickname;
        private String avatar;
    }

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class OrderDTO {
        private Integer id;
        private Integer userId;
        private String orderSn;
        private Short orderStatus;
        private Short aftersaleStatus;
        private String consignee;
        private String mobile;
        private String address;
        private String message;
        private BigDecimal goodsPrice;
        private BigDecimal freightPrice;
        private BigDecimal couponPrice;
        private BigDecimal integralPrice;
        private BigDecimal grouponPrice;
        private BigDecimal orderPrice;
        private BigDecimal actualPrice;
        private Short comments;
        private String endTime;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
    }
}
